package com.anytron.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.anytron.base.service.impl.BaseServiceImpl;
import com.anytron.mapper.NodeInfoMapper;
import com.anytron.model.NodeInfo;
import com.anytron.service.NodeInfoService;

import tk.mybatis.mapper.entity.Example;

@Service
public class NodeInfoServiceImpl extends BaseServiceImpl<NodeInfo> implements NodeInfoService {

	@Autowired
	public void setMapper(NodeInfoMapper mapper) {
		this.mapper = mapper;
	}

	@Override
	public List<NodeInfo> getNodeInfoByIds(List<Long> ids) {
		Example example = new Example(NodeInfo.class);
		Example.Criteria criteria = example.createCriteria();
		criteria.andIn("id", ids);
		return this.getByExample(example);
	}
}
